{template header}
<link rel="stylesheet" href="static/calendar/js/calendar.css" />
<script type="text/javascript" charset="utf-8" src="static/calendar/calendar.php"></script>
<h4 style="padding-left:10px;;"><span>搜索</span><i class="icon-search"></i></h4>
<form class="form-horizontal" method="post" action="">
    <div class="control-group search-group"style="margin-left:0;">
        <label class="control-label" >开始日期：</label>
        <div class="controls">
            <input type="text" name="startDate" readonly="readonly" id="start_time_id" value="{$search['startDate']}">
            <button name="start_time_btn" type="button" id="start_time_btn" onclick="return showCalendar('start_time_id', '%Y-%m-%d', '24', false, 'start_time_btn');" class="button" id="start_time_id"/>选择</button>
        </div>
    </div>
    <div class="control-group search-group" style="margin-left:0;">
        <label class="control-label" >结束日期：</label>
        <div class="controls">
            <input type="text" name="endDate" readonly="readonly" id="end_time_id" value="{$search['endDate']}">
            <button name="end_time_btn" type="button" id="end_time_btn" onclick="return showCalendar('end_time_id', '%Y-%m-%d', '24', false, 'end_time_btn');" class="button" id="end_time_id"/>选择</button>
        </div>
    </div>
    <div class="control-group search-group">
        <div class="controls">
            <button class="btn" type="submit">提交</button>　
            <button class="btn" type="reset">重置</button>
        </div>
    </div>
</form>
<div class="bs-docs-example pt-15" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>日期</th>
                {loop $channels $k $v}
                    <th data-value="{$v}">$channelInfo[$v]</th>
                {/loop}
            </tr>
        </thead>
        <tbody>
            {loop $channelData $key $value}
            <tr>
                <td>{$key}</td>
                {loop $channels $kk $vv}
                    <td>$value[$vv]</td>
                {/loop}
            </tr>
            {/loop}
        </tbody>
    </table>
</div>
{template footer}
